home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15230 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  886 b 

  1. Path: rohan.sdsu.edu.sdsu.edu!changc
  2. From: changc@rohan.sdsu.edu (Associate)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: [Q] How to convert a crontab line into a system time?
  5. Date: 4 Apr 1996 01:45:23 GMT
  6. Organization: San Diego State University
  7. Message-ID: <4jv9jj$o8c@gondor.sdsu.edu>
  8. NNTP-Posting-Host: 130.191.143.100
  9.  
  10.  
  11. Hi,
  12.  
  13. Please help.  Does anyone know the algorithm to convert a 
  14. line in crontab file and convert it into a system time?  For 
  15. example, if the line in the crontab file is: (April 4, 1996 at 12,13,14-20:00)
  16.  
  17. 0 12,13,14-20 4 4 * sleep 10  
  18.  
  19. how do I convert the above line into a future system time so the I can 
  20. substract the system time from the current system time.  The
  21. difference is how many second that I should go to sleep before
  22. waiting up and fork the sleep command.
  23.  
  24. Any help/code/sample/function is greatly appreciated.
  25.  
  26. Thanks in advance.
  27. --Clarisse
  28.